package com.shsh.safemanage.model;

import java.util.Calendar;

import com.shsh.safemanage.util.Constants;
import com.shsh.safemanage.util.MessageUtil;

public class ProblemTransferFeedback {
	private Long id;
	private Long userID;
	private Long problemID;
	private Long transferID;
	private String feedback;
	private Calendar feedbackTime;
	private int processMethod;
	private String transferedUserNames;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getProblemID() {
		return problemID;
	}

	public void setProblemID(Long problemID) {
		this.problemID = problemID;
	}

	public String getFeedback() {
		return feedback;
	}

	public void setFeedback(String feedback) {
		this.feedback = feedback;
	}

	public Calendar getFeedbackTime() {
		return feedbackTime;
	}

	public void setFeedbackTime(Calendar feedbackTime) {
		this.feedbackTime = feedbackTime;
	}

	public int getProcessMethod() {
		return processMethod;
	}

	public void setProcessMethod(int processMethod) {
		this.processMethod = processMethod;
	}
	
	public String getProcessMethodStr() {
		if (this.processMethod == Constants.PROCESS_METHOD_CLOSE) {
			return MessageUtil.getMessage(Constants.PROCESS_METHOD_CLOSE_LABEL);
		} else if (this.processMethod == Constants.PROCESS_METHOD_ESCALATE) {
			return MessageUtil.getMessage(Constants.PROCESS_METHOD_ESCALATE_LABEL);
		} else if (this.processMethod == Constants.PROCESS_METHOD_FEEDBACK) {
			return MessageUtil.getMessage(Constants.PROCESS_METHOD_FEEDBACK_LABEL);
		} else if (this.processMethod == Constants.PROCESS_METHOD_OTHERDEPART) {
			return MessageUtil.getMessage(Constants.PROCESS_METHOD_OTHERDEPART_LABEL);
		} else if (this.processMethod == Constants.PROCESS_METHOD_SENDBACK) {
			return MessageUtil.getMessage(Constants.PROCESS_METHOD_SENDBACK_LABEL);
		} else if (this.processMethod == Constants.PROCESS_METHOD_TRANSFER) {
			return MessageUtil.getMessage(Constants.PROCESS_METHOD_TRANSFER_LABEL);
		} else if (this.processMethod == Constants.PROCESS_METHOD_PROVE) {
			return MessageUtil.getMessage(Constants.PROCESS_METHOD_PROVE_LABEL);
		} else if (this.processMethod == Constants.PROCESS_METHOD_CONVERT) {
			return MessageUtil.getMessage(Constants.PROCESS_METHOD_CONVERT_LABEL);
		}
		
		return "";
	}

	public Long getTransferID() {
		return transferID;
	}

	public void setTransferID(Long transferID) {
		this.transferID = transferID;
	}

	public Long getUserID() {
		return userID;
	}

	public void setUserID(Long userID) {
		this.userID = userID;
	}

	public String getTransferedUserNames() {
		return transferedUserNames;
	}

	public void setTransferedUserNames(String transferedUserNames) {
		this.transferedUserNames = transferedUserNames;
	}
}
